import request from "@/utils"

const base_api = '/admin/system/sysClass'

export const findClassInfo = () => {
  return request({
    url: `${base_api}/findClassInfo`,
    method: 'post',
    data: {},
  })
}

export const removeStu = (params) => {
  return request({
    url: `${base_api}/deleteByStuNo`,
    method: 'post',
    data: {stuNo: params},
  })
}

export const deleteClass = (params) => {
  return request({
    url: `${base_api}/deleteById`,
    method: 'post',
    data: {classId: params},
  })
}

export const updateSysClass = (params) => {
  return request({
    url: `${base_api}/updateSysClass`,
    method: 'post',
    data: params,
  })
}

export const saveSysClass = (params) => {
  return request({
    url: `${base_api}/saveSysClass`,
    method: 'post',
    data: params,
  })
}

export const getClassStu = (params) => {
  return request({
    url: `${base_api}/getClassStu`,
    method: 'post',
    data: params,
  })
}

export const assignStu = (params) => {
  return request({
    url: `${base_api}/assignStu`,
    method: 'post',
    data: params,
  })
}
